﻿#ifndef GLOBALMSG_H
#define GLOBALMSG_H


#include "QByteArray"
#include "QTcpServer"
#include "QUdpSocket"



namespace serverMsg{
    extern QTcpServer *Server_TCP; //服务器TCP
    extern QUdpSocket* Server_UDP; //服务器UDP
    extern uint16_t Port_TCP; //TCP端口
    extern uint16_t Port_UDP; //UDP端口
    extern uint32_t UserMaxNum; //最大用户连接数
}


namespace packManger{
    QByteArray buildData(QList<QByteArray> bytes); //包构建器，将多个数据包构建成一个
    QList<QByteArray> parserData(QByteArray data); //将一个组合包拆分成多个数据包
}





#endif // GLOBALMSG_H
